import { combineReducers, configureStore } from "@reduxjs/toolkit";

import product from "./modules/product";

const rootReducer = combineReducers({
  product,
});

const store = configureStore({
  reducer: rootReducer,
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;

export default store;
